<template>

  <el-container>
    <el-aside width="200px">
      <left-menu />
    </el-aside>
    <el-main :class="[$store.state.appPrefix + '-module-all', mainFullWidth ? '' : 'main-center']">
      <router-view />
    </el-main>
  </el-container>

</template>
<script>
import LeftMenu from './left-menu/index.vue'

export default {
  name: 'LayoutWidthLeftMenu',
  components: {
    LeftMenu
  },
  data() {
    return {

    }
  },
  watch: {
    '$route.path'() {
      const meta = this.$route.meta
      // console.log('meta===', meta)
      if (meta.mainFullWidth) {
        this.mainFullWidth = true
      } else {
        this.mainFullWidth = false
      }
    }
  },

  computed: {
  },
  methods: {
  }
};
</script>
